//
//  WKStockChartTableViewCell.m
//  XTXOneToOne
//
//  Created by Canny on 2018/11/20.
//  Copyright © 2018年 WK. All rights reserved.
//

#import "WKStockChartTableViewCell.h"

@implementation WKStockChartTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        [self initView];
    }
    return self;
}

-(void)setLab:(UILabel *)lab withColor:(UIColor *)color andFont:(CGFloat)font andText:(NSString *)text andTextAlignment:(NSTextAlignment)textAlignment{
    lab.text=text;
    lab.textColor=color;
    lab.font=[UIFont systemFontOfSize:font];
    lab.textAlignment=textAlignment;
}


- (void)initView{
    
    self.backgroundColor=[UIColor backgroundColor];
    [self addSubview:self.stockChartView];
    self.stockChartView.frame = CGRectMake(0, 0, G_SCREENWIDTH,350);
    
}

-(WK_StockView *)stockChartView{
    if (!_stockChartView) {
        _stockChartView = [[WK_StockView alloc]init];
    }
    return _stockChartView;
}

- (void)awakeFromNib {
    [super awakeFromNib];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

+(CGFloat)computeHeight:(id)info{
    return 360;
}


@end
